package com.deryun.tyl.dao.impl;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;

import com.deryun.tyl.bean.Industry;
import com.deryun.tyl.bean.mapper.IndustryMapper;

public class IndustryDaoImpl extends SqlSessionDaoSupport{
	
	@Autowired
	private IndustryMapper industryMapper;
	
	public List<Industry> getAllIndustry(){
		return industryMapper.getAllIndustry();
	}
	
	
	public int addIndustry(Industry industry){
		return industryMapper.addIndustry(industry);
	}
	
	
	public int deleteIndustry(int id){
		return industryMapper.deleteIndustry(id);
	}
}
